<?php

namespace common\logics;

use Yii;

/**
 * 
 */
class ShopProductLogic extends \common\models\shop\ShopProduct {

    public function getFrontLink() {
        return [
            'id' => $this->id,
            'type' => 'goods',
        ];
    }

    public function fields() {
        return [
            'id',
            'name',
            'slogan',
            'description',
            'thumb',
            'price' => 'memberPrice',
            'market_price' => 'marketPrice',
        ];
    }

}
